package com.renren.project.db.utils.bean;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.util.Set;
import java.util.TreeSet;

/**
 * @date 2020/9/4
 */
@Data
@ApiModel("字段信息")
public class ColumnInfo {

    @ApiModelProperty("主键")
    private boolean key;

    @ApiModelProperty("字段名")
    private String columnName;

    @ApiModelProperty("字段注释")
    private String columnComment;

    @ApiModelProperty("是否可为空")
    private boolean nullable;

    @ApiModelProperty("数据类型")
    private String dataType;

    @ApiModelProperty("注解行列表")
    private Set<String> annotations = new TreeSet<>();

    @ApiModelProperty("导入行列表")
    private Set<String> importPackages=new TreeSet<>();
}
